package com.example.park2212.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.CarBean
import com.example.lib_base.entity.CarBeanItem
import com.example.park2212.R

class CarAdapter:BaseQuickAdapter<CarBeanItem,BaseViewHolder>(R.layout.item_car) {
    override fun convert(helper: BaseViewHolder, item:  CarBeanItem) {
       helper.setText(R.id.car_size,item.parkingSpaceId)
        helper.setText(R.id.car_name,"${item.userName}+${item.parkingSpaceName}")
        helper.setText(R.id.car_tvTime_in,item.startTime.toString())
        helper.setText(R.id.car_tvTime_stop,item.endTime.toString())
        helper.setText(R.id.car_tvTime_address,item.areaId)
    }
}